<html>
<head>
<script src="../../resources/gc.js"></script>
<script>
if (window.testRunner)
    testRunner.dumpAsText();

d = document.implementation.createDocument(null, '');
d.fonts.size;
face = new FontFace('f', 'local(F)', {});
d.fonts.add(face);
d.fonts.delete(face);
d.fonts.has(face);
d.fonts.clear();
d.fonts.check('10px f');
d.fonts.load('10px f');
d.fonts.ready;
d.fonts.forEach(function(){});
d.fonts.status;

fontFaceSet = d.fonts;
delete d;
gc();

fontFaceSet.add(face);
fontFaceSet.delete(face);
fontFaceSet.has(face);
fontFaceSet.clear();
fontFaceSet.check('10px f');
fontFaceSet.load('10px f');
fontFaceSet.ready;
fontFaceSet.forEach(function(){});
fontFaceSet.status;
</script>
</head>
<body>
This test passes if it does not crash.
</body>
</html>
